//
//  CXDNetHelp.h
//  Package
//
//  Created by 陈雪丹 on 2018/4/27.
//  Copyright © 2018年 cxd. All rights reserved.
//  基础网络请求

#import <Foundation/Foundation.h>

@interface CXDNetHelp : NSObject

typedef void(^successBlock)(_Nullable id responseObject);
typedef void(^failureBlock)(NSError * _Nullable error);

+ (void)postRequestWithURLString:(NSString * _Nullable)urlString parameters:(nullable id)parameters success:(_Nullable successBlock)success failure:(nullable failureBlock)failure;

+ (void)getRequestWithURLString:(NSString * _Nullable)urlString parameters:(nullable id)parameters success:(_Nullable successBlock)success failure:(nullable failureBlock)failure;
+ (void)getQRImageDataWithURLString:(NSString * _Nullable)urlString parameters:(nullable id)parameters success:(_Nullable successBlock)success failure:(nullable failureBlock)failure;

@end
